<template>
    <div class="box">
        <SlotChild>
            <p>SlotChild</p>
        </SlotChild>
    </div>
</template>
<script setup>
import SlotChild from './SlotChild.vue';
</script>
<style scoped>
:global(.global-class){
    color:red;
}
</style>